<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <div class="desc">抱歉，您访问的页面不存在</div>
      <p class="path" v-if="$route.query && $route.query.toPath">
        路径: <span class="highlight">{{ $route.query.toPath }}</span>
      </p>
      <el-button type="primary" @click="$router.push('/')" class="back-btn">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<style scoped>
.not-found {
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
}

.content {
  text-align: center;
  padding: 32px;
}

h1 {
  font-size: 120px;
  font-weight: bold;
  color: #1890ff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 4px 4px 0 rgba(24,144,255,0.1);
}

.desc {
  font-size: 24px;
  color: #262626;
  margin: 24px 0;
}

.path {
  font-size: 16px;
  color: #8c8c8c;
  margin: 24px 0;
}

.highlight {
  color: #f5222d;
  background-color: #fff1f0;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 4px;
}

.back-btn {
  margin-top: 24px;
  height: 40px;
  padding: 0 32px;
}
</style>